package com.chorye.datasource.service;

import com.chorye.datasource.dao.StudentMapper;
import com.chorye.datasource.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Company: 北京XXXX有限公司
 * @Author JiangYy
 * @Title: StudentService
 * @Description: TODO
 * @Date 2018/12/13 9:34
 */
@Service
public class StudentService {

    @Autowired
    private StudentMapper studentMapper;

    /**
     * 通过学生id获取学生信息
     *
     * @param stuId 学生ID
     * @return 学生信息
     */
    public Student getStudentById(String stuId) {
        return studentMapper.getStudentById(stuId);
    }
}
